babl_get_version () moved into separate source file.
authorJan Heller <jheller@svn.gnome.org>
Tue, 3 Jun 2008 14:11:34 +0000 (14:11 +0000)
committerJan Heller <jheller@src.gnome.org>
Tue, 3 Jun 2008 14:11:34 +0000 (14:11 +0000)
2008-06-03  Jan Heller  <jheller@svn.gnome.org>

        babl_get_version () moved into separate source file.

        * babl/Makefile.am: Added babl-version.c.
        * babl/babl-version.c (babl_get_version): Implemented.
        * babl/babl-version.h.in: Added babl_get_version () declaration.
        * babl/babl.c: Removed babl_get_version ().
        * babl/babl.h: Removed babl_get_version () declaration.

svn path=/trunk/; revision=321

ChangeLog
babl/Makefile.am
babl/babl-version.c [new file with mode: 0644]
babl/babl-version.h.in
babl/babl.c
babl/babl.h

index 1b7cf038daaccaec99cecb98583b77c0b678d11a..e4eda5ba981b888347c1da06114f318a9e138166 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2008-06-03  Jan Heller  <jheller@svn.gnome.org>
+
+       babl_get_version () moved into separate source file.
+
+       * babl/Makefile.am: Added babl-version.c.
+       * babl/babl-version.c (babl_get_version): Implemented.
+       * babl/babl-version.h.in: Added babl_get_version () declaration.
+       * babl/babl.c (babl_destroy):  Removed babl_get_version ().
+       * babl/babl.h: Removed babl_get_version () declaration.
+
 2008-06-03  Jan Heller  <jheller@svn.gnome.org>
 
        * babl/babl-version.h.in: Added.
index c9efede0b327ff13d25ff5de4a7afe8d093bb08a..5b358697db667fe0d2072cc312840733f530d662 100644 (file)
@@ -30,7 +30,8 @@ c_sources =                           \
        babl-util.c                     \
        babl-list.c                     \
        babl-hash-table.c               \
-       babl-cpuaccel.c
+       babl-cpuaccel.c                 \
+       babl-version.c
 
 h_sources  =                           \
        babl-db.h                       \
diff --git a/babl/babl-version.c b/babl/babl-version.c
new file mode 100644 (file)
index 0000000..b1805ef
--- /dev/null
@@ -0,0 +1,35 @@
+/* babl - dynamically extendable universal pixel conversion library.
+ * Copyright (C) 2005-2008, Øyvind Kolås and others.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General
+ * Public License along with this library; if not, see
+ * <http://www.gnu.org/licenses/>.
+ */
+
+#include "babl-internal.h"
+
+
+void     
+babl_get_version (int *major,   
+                  int *minor,   
+                  int *micro)   
+{       
+  if (major != NULL)    
+    *major = BABL_MAJOR_VERSION;        
+                 
+  if (minor != NULL)    
+    *minor = BABL_MINOR_VERSION;        
+                 
+  if (micro != NULL)    
+    *micro = BABL_MICRO_VERSION;        
+}
index aa8b3f9314477136ae6d90ed7698a700a5e9636e..40d39306e632695af985e7016e8587aa62583746 100644 (file)
@@ -31,4 +31,9 @@
 #define BABL_MINOR_VERSION @BABL_MINOR_VERSION@
 #define BABL_MICRO_VERSION @BABL_MICRO_VERSION@
 
+/** Get the version information on the babl library */
+void   babl_get_version (int *major,
+                         int *minor,
+                         int *micro);
+
 #endif
index d672c75dc826d2b4c413c6ba66567122206c4600..97ec6fc97b84aa7477826112f25a6cfa29853e05 100644 (file)
@@ -74,18 +74,3 @@ babl_destroy (void)
       babl_memory_sanity ();
     }
 }
-
-void     
-babl_get_version (int *major,   
-                  int *minor,   
-                  int *micro)   
-{       
-  if (major != NULL)    
-    *major = BABL_MAJOR_VERSION;        
-                 
-  if (minor != NULL)    
-    *minor = BABL_MINOR_VERSION;        
-                 
-  if (micro != NULL)    
-    *micro = BABL_MICRO_VERSION;        
-}
index bf46ef07e472d184fed1385da41314e800bb80fb..019f96a051cc37029a675478b2877efb4b1b57a8 100644 (file)
@@ -81,11 +81,6 @@ void   babl_init       (void);
  */
 void   babl_destroy    (void);
 
-/** Get the version information on the babl library */
-void   babl_get_version (int *major,
-                         int *minor,
-                         int *micro);
-
 #if     __GNUC__ >= 4
 #define BABL_ARG_NULL_TERMINATED __attribute__((__sentinel__))
 #else